<%-- 
    Document   : tambah_ahli_kumpulan
--%>
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Jawab Tawaran Haji</title>
        <script type="text/javascript">
            $(document).ready(function(){
                $('form').submit( function () {
                    return formValidation();
                }); 
            });
            function resetAll(){
                document.getElementById("noAkaun").value = "";
            }
            function validate(){
                if(document.getElementById("noAkaun").value.length != 15){
                    alert("Masukkan nombor akaun yang betul");
                    return false;
                }
                else {
                    return true;
                }
            }
            function validate1(f){
                if(validate()){
                    f.action = "${pageContext.request.contextPath}/haji/response?showTambahAhliKumpulan";
                    f.submit();
                }
            }
             function tutup(){
                parent.dhxWins.window("plusW").close();
            }
        </script>
    </head>
    <body>
        <s:messages/>
        <s:errors/> 
        <br/>
        <s:form beanclass="th.stripes.action.HajiResponseActionBean" >
            <s:hidden name="haji.noAkaunPenambah"/>
            <div id="content" style="width:90%">
                <div id="logo">
                    <span>
                        <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
                    </span>
                </div>
                <h3>
                    Carian Ahli Keluarga
                </h3>
                <p>
                    <label>No. Akaun TH :</label>
                    <s:text name="haji.noAkaun" id="noAkaun"/>&nbsp;
                </p> 
                <p align="center">
                    <s:button name="check" value="Semak" class="button green" onclick="validate1(this.form)"/>
                    <s:button name="reset" value="Isi Semula" onclick="resetAll()" class="button green"/>
                    <s:button name="cls" value="Tutup" onclick="tutup()" class="button green"/>
                </p>
            </div>
        </s:form>
    </body>
</html>
